import VueRouter from "vue-router"
import Vue from "vue"
Vue.use(VueRouter)

const Home = ()=> import("../views/home/Home.vue")
const Mine = ()=> import("../views/mine/Mine.vue")
const Share = ()=> import("../views/home/Share.vue")
const Find = ()=> import("../views/mine/Find.vue")

const routers=[
  {
    path:"",
    redirect:"/home"
  },
  {
    path:"/home",
    component:Home
  },
  {
    path:"/mine",
    component:Mine
  },
  {
    path:"/share",
    component:Share
  },
  {
    path:"/find",
    component:Find
  }
]

const router = new VueRouter({
  routes:routers,
  mode:"history"
})

export default router
